<?php
/**
 * Created by PhpStorm.
 * User: 秋枫雁飞
 * Date: 2019/4/29
 * Time: 11:15
 */

namespace Aiweline\Core\Helper;


class Logger
{
    protected $logger;

    function __construct(\Psr\Log\LoggerInterface $logger)
    {
        $this->logger = $logger;
    }
    /**
     * get Magneto2 Logger By Myself
    */
    public function getLogger()
    {
        return $this->logger;
    }
    /*
     *Debug log By Myself
     */
    public function debug($data){
        $data = json_encode($data);
        $this->logger->debug($data);
    }
}